<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="header.jsp"%>
<%@ page import="MyServlet.Position2"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<br>
	<br>

	<h2>Delete or update position</h2>
	<br>
	<br>
	<div id="myDiv2">
		<c:if test="${!empty positionList }">
			<c:forEach items="${positionList}" var="position">
				<div style="padding: 2em 6em;">
					<form action="/Assignment3/updateUser/${position.id}" method="POST">
						<table>
							<tr>
								<td><a href="/Assignment3/deleteUser/${position.id}"><button>
											Delete</a>
									</button></td>
								<td>
									<table>
										<tr>
											<td>Total places: ${position.totalPlaces}</td>
										</tr>
										<tr>
											<td>Name: ${position.name}</td>
										</tr>
										<tr>
											<td>Project: ${position.project}</td>
										</tr>
										<tr>
											<td>Requirements: ${position.requirements}</td>
										</tr>
										<tr>
											<td>Department: ${position.department}</td>
										</tr>
										<tr>
											<td>Responsibilities: ${position.responsibilities}</td>
										</tr>

									</table>
								</td>
								<td><img src="images/user.jpg" height="150" width="250"></td>
								<td>
									<table>
										<tr>
											<td>Total places:</td>
											<td><input class="inputtext" type="text"
												name="totalPlaces" /></td>
										</tr>
										<tr>
											<td>Name:</td>
											<td><input class="inputtext" type="text" name="name" /></td>
										</tr>
										<tr>
											<td>Project:</td>
											<td><input class="inputtext" type="text" name="project" /></td>
										</tr>
										<tr>
											<td>Requirements:</td>
											<td><input class="inputtext" type="text"
												name="requirements" /></td>
										</tr>
										<tr>
											<td>Department:</td>
											<td><input class="inputtext" type="text"
												name="department" /></td>
										</tr>
										<tr>
											<td>Responsibilities:</td>
											<td><input class="inputtext" type="text"
												name="responsibilities" /></td>
										</tr>

									</table>

								</td>
								<td><input type="submit" tabindex="4" value="Update" /></td>
							</tr>
						</table>
					</form>
				</div>
			</c:forEach>
		</c:if>
	</div>
</body>
</html>